home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
utils
/
desktop
/
nodsk301.lzh
/
SCRIPTE
/
LZHSHOW.NDS
< prev
Wrap
Text File
|
1994-12-19
|
944b
|
68 lines
#
# Zielpfad und -datei suchen und erstellen
#
echo@W1 " "
set path = $2:t:r
set path = $TEMPDIR\$path
set pnum = 0
while (-e $path.$pnum)
set pnum @ $pnum + 1
wend
set path = $path.$pnum
set file = $path\$3
mkdir $path
cd $path
#
# optionaler Bildertreiber
#
set t = $3:r
if ("x"$3 != "x"$t) then
set otto = $3:e
set pdrv = $SYSDIR\$otto.NDT
if (! -e $pdrv) unset pdrv
endif
if ($?pdrv) then
echo@W1 "Bild "$3" extrahieren und anzeigen !"
else
echo@W1 "Datei "$3" extrahieren und anzeigen !"
endif
#
# Datei entarcen
#
packerlzh@W1 x -pxm -w$path $2 $3
sleep 1
#
# Terminalfenster schließen
#
w_close -NWCON1
#
# Bild-/Text-/Dump-Fenster öffnen
#
if ($1 == 1) then
if ($?pdrv) then
wpic -t$pdrv -P$wpicpos -X"rm -nRY $path" $file
else
wview -P$wtextpos -X"rm -nRY $path" $file
endif
else
wdump -P$wtextpos -X"rm -nRY $path" $file
endif